package com.test6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Admin on 9/17 0017.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext con=new ClassPathXmlApplicationContext("test6.xml");
        UserService user= (UserService) con.getBean("userService");
        user.add();
        System.out.println(user);
    }
}
